﻿using CarAppDomain.Base;
using SqlSugar;

namespace CarAppDomain.CarType.Entities
{
    /// <summary>
    /// 3. 品牌表：建立品牌表，包含品牌代码（品牌ID）、品牌名称（中英文）、品牌归宿地、品牌所在地（制造国）等信息。
    /// 包含以下子表：WMI表、车系表、配件属性表、车辆构造表、配件名称表、配置表、
    /// </summary>
    [SugarTable("brand", TableDescription = "品牌信息")]
    public class BrandEntity : BaseEntity
    {
        /// <summary>
        /// 品牌中文名称
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 128, IsNullable = false, ColumnDescription = "品牌中文名称")]
        public string? Name { get; set; }

        /// <summary>
        /// 品牌英文名称
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 128, IsNullable = true, ColumnDescription = "品牌英文名称")]
        public string? EnglishName { get; set; }

        /// <summary>
        /// 品牌代码
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 20, IsNullable = false, ColumnDescription = "品牌代码")]
        public string? Code { get; set; }
        
        /// <summary>
        /// 品牌归宿地
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 50, IsNullable = false, ColumnDescription = "品牌代码")]
        public string? BelongingPlace { get; set; }

        /// <summary>
        /// 品牌所在地（制造国）
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 50, IsNullable = false, ColumnDescription = "品牌制造国")]
        public string? ManufacturingCountry { get; set; }
    }
}
